Java Chess and Checkers Game
Developer
Public chat
Product Details
This is a desktop that allows you to play chess
against your friends it also has a checkers game, The game is built with the
help of the following technologies:
1. Java Programming Language
2. JavaFx library
3. Scene Builder
4. WebSwing
Game
This class is the main class of the game, it contains the main method and
the start method which is used to start the game. It also contains the main
menu that is first displayed to the user when the game is started, it then
passes the user information to the Controller class. which then passes it to
the start game method to instantiate the game board and start the game.
Gameboard
This class represents the overall game board and contains the layout and
graphics for the board and pieces It also extends event handler class, which
allows it to listen for mouse clicks from user actions and trigger changes in
the game state. It also handles basic game logic such as checking for legal
moves and determining the winner.
Chessboard
This class extends the Gameboard class and adds the specific rules and layout
for chess. It implements the move logic for chess pieces and enforces the rules
of the game.It also overrides the handle method to handle the promotion
of pawns to queens, rooks, bishops, or knights. This class implements the
abstract method fillBoard() which is used to fill the board with the chess
pieces.
Main Classes
Game
Gameboard
Chessboard
Checkerboard
Piece
Square
Move
Promotion
Controller
File Tree
-
📁 Java Chess and Checkers Game